﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Zeny.Common.Utils;

namespace Zeny.Common.Domain
{
    public abstract class BaseEntity
    {
        public string id { get; set; }

        public override bool Equals(object obj)
        {
            BaseEntity item = obj as BaseEntity;

            return item.id == this.id;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
        
        public override string ToString()
        {
            return ObjectDumper.Dump(this);
        }
    }
}
